/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.scaroo.injectedgallery;

import javax.enterprise.context.ApplicationScoped;
import javax.inject.Named;
import javax.persistence.Entity;
import javax.persistence.Id;
import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.Length;
import org.scaroo.injectedgallery.validators.FrenchPhoneNumber;

/**
 *
 * @author alexandremazari
 */

@ApplicationScoped
@Entity @Named
public class Photographer {
    @Length(min=4)
    @Id private String name;

    @Email private String emailAddress;

    @FrenchPhoneNumber private String phoneNumber;

    @Length(min=10, max=100)
    private String bio;

  // <editor-fold desc="Getters//Setters" defaultstate="collapsed">

    public String getBio() {
        return bio;
    }

    public void setBio(String bio) {
        this.bio = bio;
    }

    public String getEmailAddress() {
        return emailAddress;
    }

    public void setEmailAddress(String emailAddress) {
        this.emailAddress = emailAddress;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    // </editor-fold>


//    public Photographer() {}
//    public Photographer(String name, String emailAddress, String phoneNumber) {
//        this.name = name;
//        this.emailAddress = emailAddress;
//        this.phoneNumber = phoneNumber;
//  }

    public String toString() {
        return name;
    }
}
